{% extends "admin/base_site.html" %}
{% load i18n admin_modify adminmedia %}
{% load url from future %}

{% block branding %}
<h1 id="site-name">{% trans 'Khawajgan Census Reports' %}</h1>
{% endblock %}
        
{% block breadcrumbs %}
<div class="breadcrumbs">
     <a href="../">{% trans "Home" %}</a>     
</div>
{% endblock %}

{% block content %}

	<h1> Khawajgan Census Kabilah Report</h1>
	
	<TABLE>	
		<TR>
			<TH align="left">No.</TH>
			<TH align="left">Kabilah</TH>
			<TH align="left">Male </TH>
			<TH align="left">Female </TH> 
			<TH align="left">Male(Under 18) </TH>
			<TH align="left">Female(Under 18) </TH>
			<TH align="left">Total </TH>		
		</TR>
		{% for kabilah, detail in kabilah_detail %}
		<TR>
			<TD>{{forloop.counter}}</TD>
			<TD>{{kabilah}}</TD>
			<TD>{{detail.0}}</TD>
			<TD>{{detail.1}}</TD>
			<TD>{{detail.2}}</TD>
			<TD>{{detail.3}}</TD>
			<TD>{{detail.4}}</TD>
		</TR>
		{% endfor %}
		<TR>
			<TD></TD>
			<TD></TD>
			<TD>{{total_count.0}}</TD>
			<TD>{{total_count.1}}</TD>
			<TD>{{total_count.2}}</TD>
			<TD>{{total_count.3}}</TD>
			<TD>{{total_count.4}}</TD>
		</TR>
	</TABLE>
	

{% endblock %}